NetworkInterface

data class NetworkInterface(val name: String?, val macAddress: String?, val connected: Boolean = false, val ipv4: String?) : Parcelable

A network interface represents the hardware interface information of a network device.

Constructors

Link copied to clipboard
constructor(name: String?, macAddress: String?, connected: Boolean = false, ipv4: String?)

Properties

Link copied to clipboard
val connected: Boolean = false

if this interface is currently connected to the network.

Link copied to clipboard
val ipv4: String?

the ipv4 ip address of the network interface if it's currently connected

Link copied to clipboard

the unique hardware mac address of the network interface

Link copied to clipboard
val name: String?

the interface name e.g : eth0, wlan0, ...

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)